package com.test.demo.consumer;

import com.test.demo.provider.service.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class DefaultCosumer {

    @Reference(version = "default")
    private DemoService demoService;
    @Test
    void contextLoads() {
//        try {
//            Thread.sleep(5000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        String world = demoService.sayHello("world");
        System.out.println(world);
    }

}
